﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Wedo.Recognition.Domain.Models;
using Wedo.Mvc.Utility;
using Wedo.Mvc.Pager;
using Wedo.Recognition.Service;
using Wedo.Recognition.Domain;
using Wedo.Recognition.Repository;


namespace Wedo.Recognition.Web.Controllers
{
    public class RecieveRecordController : EntityController<RecieveRecord, CommonTimeSearch>
    {
        private RecieveRecordService service;

        public RecieveRecordController(IUnitWork dbContext)
            : base(dbContext)
        {
            service = new RecieveRecordService(_dbContext);
        }


        protected override Wedo.Service.Common.IBaseService<RecieveRecord> EntityService
        {
            get { return service; }
        }

        protected override PagedList<RecieveRecord> GetSearchPagedList(CommonTimeSearch where)
        {
            return service.GetPagedList(where);
        }
    }
}
